/**
 * User: sheyude
 * Date: 2017/10/9 0009
 * Time: 下午 13:59
 *
 */
import { trigger, state, transition, style, animate, keyframes } from '@angular/animations'
export const slideToRight = trigger('routerAnim',[
  state('void',style({position:'fixed',width:'100%',height:'80%'})),
  state('*',style({position:'fixed',width:'100%',height:'80%'})),
  transition('void => *',[
    style({transform:'translateX(-100%)'}),
    animate('.5s ease-in-out',style({transform:'translateX(0)'}))
  ]),
  transition('* => void',[
    style({transform:'translateX(0)'}),
    animate('.5s ease-in-out',style({transform:'translateX(100%)'}))
  ]),
]);
